package com.chen.service;

import com.chen.entity.MemberReceiveAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.vo.AddressVo;

import java.util.List;

/**
 * <p>
 * 用户收货地址表 服务类
 * </p>
 *
 * @author cws
 * @since 2024-11-25
 */
public interface MemberReceiveAddressService extends IService<MemberReceiveAddress> {

    List<AddressVo> treeList();

    int create(MemberReceiveAddress address);

    int deleteAddress(Long id);

    int updateAddress(Long id, MemberReceiveAddress address);

    int updateDefaultAddr(Long id, Integer status);

    List<MemberReceiveAddress> addressList();


    MemberReceiveAddress getAddressById(Long id);
}
